#!/bin/sh
name=srv.`date +%Y%m%d-%H%M`.tar.gz 
echo "Generating $name"
docker-machine ssh default "cd /tmp && sudo tar czf $name /srv"
docker-machine scp default:/tmp/$name .
docker-machine ssh default "sudo rm /tmp/$name"
